package com.knight.jdk8.stream;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @Description:
 * @author: knight
 * @Date: 2019-05-04 15:43
 */
public class StreamTest7 {
    public static void main(String[] args) {
        List<String> strings = Stream.of("one", "three", "four").filter(e -> e.length() > 3).peek(System.out::println).collect(Collectors.toList());
        System.out.println("---------------");
        strings.forEach(System.out::println);
    }
}
